package com.anne.fish.webapp.action;

import org.springframework.dao.DataAccessException;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core.userdetails.UsernameNotFoundException;

public class SecurityManagerSupport implements UserDetailsService {

	public UserDetails loadUserByUsername(String userName) throws UsernameNotFoundException, DataAccessException {
		
		
		
		return null;
	}  
	  
	
//    public UserDetails loadUserByUsername(String userName) throws UsernameNotFoundException, DataAccessException {  
//        List<User> users = getHibernateTemplate().find("FROM User user WHERE user.name = ? AND user.disabled = false", userName);  
//        if(users.isEmpty()) {  
//            throw new UsernameNotFoundException("User " + userName + " has no GrantedAuthority");  
//        }  
//        return users.get(0);  
//    }  
}